package com.ehotting.edsta.mqbd.signal.netty.action;

import com.ehotting.eaf.core.constant.NettyActionConstant;
import com.ehotting.eaf.netty.action.Action;
import com.ehotting.eaf.netty.action.ActionAble;
import com.ehotting.eaf.netty.domain.DataAble;
import com.ehotting.edsta.mqbd.signal.api.domain.netty.HeartBeatRequest;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Component;

@Component
@Action(value = NettyActionConstant.HEART_BEAT)
public class HeartBeatAction implements ActionAble<HeartBeatRequest> {

	@Override
	public DataAble invoke(ChannelHandlerContext ctx, HeartBeatRequest request) {
		return request;
	}

	@Override
	public Class<?> getRequestClass() {
		return HeartBeatRequest.class;
	}

}
